package com.ctgu.springstart.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Document(indexName = "blog", type = "article")
public class Article implements Serializable {
    private static final long serialVersionUID = 1525231207462514536L;
    private long id;
    private String title;
    private String summary;
    private String content;
    private Integer pv;
}
